{template 'yellowpage_header.html','yellowpage'}


<div class="container">
	<div class="aside">
    	
        {if $m_user}
        <div class="mod">
            <div class="head">热点导航</div>
            <div class="body">
                <ul>
                {loop $m_user $ms}
                  <li><a href="{$ms[url]}">{$ms[catname]}</a></li>
                {/loop}
                </ul>
            </div>
        </div>
        {/if}
        
        <div class="mod">
            <div class="head">最热商机</div>
            <div class="body">
                <ol>
                {get sql="SELECT * FROM `table_yellowpage_buy` `b` WHERE `b`.`userid`='$userid' AND `b`.status=99" rows="10"}
                <li><a href="{url($r[url])}" title="{$r[title]}">{str_cut($r[title],28,'')}</a></li>
                {/get}
              </ol>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">站内搜索</div>
            <div class="body">
                <form class="box" action="{$M['url']}web/query.php">
                  <input type="text" name="q" size="16"/><input name="search" type="submit" id="search" value="搜索"/><br/>
                  <input type="radio" name="type" checked="checked" value="product"/>商品<input type="radio" name="type" value="buy"/>商机<input value="news" type="radio" name="type"/>新闻<input type="hidden" value="search" name="action" /><input name="userid" value="{$userid}" type="hidden" />
                </form>
            </div>
        </div>
            
    </div>
    <div class="main">
    	
        <div class="mod">
            <div class="head">{$system_name[$category]}</div>
            <div class="body">
                <ul class="txt_list">
                {get sql="SELECT id,title,tid,content,userid,updatetime,url FROM `table_yellowpage_buy` WHERE userid='$userid' AND status=99 ORDER BY id DESC" rows="15" page="$page" urlrule="$urlrule"}
                <li><span>{date('Y年m月d日',$r[updatetime])}</span>[{if $r[tid]==2}求购{elseif $r[tid]==3}二手{elseif $r[tid]==4}促销{else}供应{/if}] <a href="{url($r[url])}">{$r[title]}</a></li>
                {/get}
                      </ul>
                      
                      <div class="pagination">{$pages}</div>
            </div>
        </div> 
        
        
    </div>
     <p class="clear"></p>
</div>
 
{template 'yellowpage_footer.html','yellowpage'} 